module.exports = Behavior({
    data: {
        page: 1,
        loading: !1,
        listData: [],
        noMore: !1,
        isLoadMore: !1,
        defPath: "/packageF/subscribe/"
    },
    methods: {
        initdata: function() {
            this.setData({
                page: 1,
                listData: [],
                loading: !1,
                isLoadMore: !1,
                noMore: !1
            });
        },
        setMore: function(t) {
            this.setData({
                noMore: t,
                isLoadMore: !t
            });
        },
        goto: function(t) {
            var a = t.currentTarget.dataset.path;
            wx.navigateTo({
                url: this.data.defPath + a + "/" + a
            });
        },
        onReachBottom: function() {
            this.data.noMore || this.getMoreData();
        }
    }
});